package com.java1412.tree.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.java1412.tree.mapper.IsmModelTreeMapper;
import com.java1412.tree.domain.IsmModelTree;
import com.java1412.tree.service.IIsmModelTreeService;

/**
 * 模型文件树表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-18
 */
@Service
public class IsmModelTreeServiceImpl implements IIsmModelTreeService 
{
    @Autowired
    private IsmModelTreeMapper ismModelTreeMapper;

    /**
     * 查询模型文件树表
     * 
     * @param id 模型文件树表主键
     * @return 模型文件树表
     */
    @Override
    public IsmModelTree selectIsmModelTreeById(Long id)
    {
        return ismModelTreeMapper.selectIsmModelTreeById(id);
    }

    /**
     * 查询模型文件树表列表
     * 
     * @param ismModelTree 模型文件树表
     * @return 模型文件树表
     */
    @Override
    public List<IsmModelTree> selectIsmModelTreeList(IsmModelTree ismModelTree)
    {
        return ismModelTreeMapper.selectIsmModelTreeList(ismModelTree);
    }

    /**
     * 新增模型文件树表
     * 
     * @param ismModelTree 模型文件树表
     * @return 结果
     */
    @Override
    public int insertIsmModelTree(IsmModelTree ismModelTree)
    {
        return ismModelTreeMapper.insertIsmModelTree(ismModelTree);
    }

    /**
     * 修改模型文件树表
     * 
     * @param ismModelTree 模型文件树表
     * @return 结果
     */
    @Override
    public int updateIsmModelTree(IsmModelTree ismModelTree)
    {
        return ismModelTreeMapper.updateIsmModelTree(ismModelTree);
    }

    /**
     * 批量删除模型文件树表
     * 
     * @param ids 需要删除的模型文件树表主键
     * @return 结果
     */
    @Override
    public int deleteIsmModelTreeByIds(Long[] ids)
    {
        return ismModelTreeMapper.deleteIsmModelTreeByIds(ids);
    }

    /**
     * 删除模型文件树表信息
     * 
     * @param id 模型文件树表主键
     * @return 结果
     */
    @Override
    public int deleteIsmModelTreeById(Long id)
    {
        return ismModelTreeMapper.deleteIsmModelTreeById(id);
    }
}
